//
//  MyVM.h
//  WanCaiC8
//
//  Created by tangang on 2018/4/20.
//  Copyright © 2018年 tangang. All rights reserved.
//

#import "BaseVM.h"
#import "TaskModel.h"
#import "MyCommissionModel.h"
#import "FouseModel.h"
#import "PrepaidRecords.h"
#import "BankModel.h"
#import "QuizLotteryModel.h"
#import "GradesModel.h"
#import "DynamicModel.h"
#import "VisitRecordModel.h"
#import "MyCardModel.h"
#import "CommentModel.h"
@interface MyVM : BaseVM

@property (nonatomic ,strong) NSMutableArray *bankArr;

///获取个人信息
- (void)getUserInfoWithUserId:(NSString *)userId WithSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 修改密码
 * @param oldpwd 旧密码
 * @param newpwd 新密码
 */
- (void)updatePasswordWithOldPwd:(NSString *)oldpwd andNewPwd:(NSString *)newpwd andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 修改用户信息
 * @param value 新的值
 * @param type 1、昵称 2、签名 3、性别
 */
- (void)updateUserInfoWithValue:(NSString *)value andType:(NSInteger)type andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 获取我的关注
 * @param lastId 最后一条Id
 */
- (void)getMyFollowWithLastId:(NSString *)lastId Success:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 取消关注
 * @param followedUserId 关注的会员Id
 */
- (void)cancleFollowWithId:(NSString *)followedUserId Success:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 添加关注
 * @param followedUserId 关注的会员Id
 */
- (void)addFollowWithId:(NSString *)followedUserId Success:(SuccessBlock)success andFail:(FailBlock)fail;
/**
 * 获取我的粉丝
 * @param lastId 最后一条Id
 */
- (void)getMyFansWithLastId:(NSString *)lastId Success:(SuccessBlock)success andFail:(FailBlock)fail;
/**
 * 获取赚钱任务列表
 */
- (void)getTaskListSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 我的佣金
 */
- (void)getMyCommissionSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 获取交易记录数据
 * @param type 1=充值 2=消费 3=赚钱
 * @param page 页码
 */
- (void)getRecordListWithType:(NSInteger)type andPage:(NSInteger)page andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 获取收入提现明细
 * @param type 1=充值 2=消费 3=赚钱
 * @param page 页码
 */
- (void)getMyCommissionWithType:(NSInteger)type andPage:(NSInteger)page andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 获取用户绑定的银行卡
 * @param userId 用户ID
 */
- (void)getBankCardWithUserId:(NSString *)userId andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 获取用户绑定的银行卡
 * @param dict 银行卡信息
 */
- (void)addBankCardWithDict:(NSDictionary *)dict andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 添加提现记录
 * @param bankId 银行卡Id
 * @param money 金额
 */
- (void)addWithdrawalRecordWithBankId:(NSString *)bankId andMoney:(NSString *)money andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 获取竞猜数据
 * @param pid 彩种分类id
 */
- (void)getBetWithPId:(NSString *)pid andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 获取竞猜数据
 * @param ltype 彩种
 * @param playName 玩法名称
 * @param pageIndex 页码
 */
- (void)getMyBetWithLtype:(NSInteger)ltype andPlayName:(NSString *)playName andPage:(NSInteger)pageIndex andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 获取动态
 * @param uid 用户ID
 * @param pageIndex 页码
 */
- (void)getDenamicWithUid:(NSString *)uid andPage:(NSInteger)pageIndex andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 获取访客
 * @param uid 用户ID
 * @param pageIndex 页码
 */
- (void)getVisitRecordWithUid:(NSString *)uid andPage:(NSInteger)pageIndex andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 获取卡券
 * @param type 0 未使用 1已使用 2已过期
 * @param pageIndex 页码
 */
- (void)getCardWithType:(NSInteger)type andPage:(NSInteger)pageIndex andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 获取是否关注过指定用户
 * @param userId 受访人ID
 */
- (void)getHasFollowWithId:(NSString *)userId andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 支付宝支付
 * @param money 金额
 */
- (void)getZfbInfoWithMoney:(float)money andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 微信支付
 * @param money 金额
 */
- (void)getWechatInfoWithMoney:(float)money andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 获取评论消息列表
 * @param page 页码
 */
- (void)getCommentNoticeWithPage:(NSInteger)page andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 获取系统消息列表
 * @param page 页码
 */
- (void)getSystemNoticeWithPage:(NSInteger)page andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 获取未读消息数量
 */
- (void)getNoticeNoReadWithSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 获取邀请注册
 */
- (void)getInvitationRegWithSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * 获取邀请注册信息
 */
- (void)getInvitationInfoWithSuccess:(SuccessBlock)success andFail:(FailBlock)fail;

/**
 * （新增/高手详情页调用）根据彩种类型、玩法名称和期数查询开奖历史信息和统计数据
 */
- (void)getStatisticsAndListWithUid:(NSString *)uId andLType:(NSInteger)lType andPlayName:(NSString *)playName andPageSize:(NSInteger)pageSize andSuccess:(SuccessBlock)success andFail:(FailBlock)fail;



+(MyVM *)manage;
@end
